package com.hnkywl.sts.entity.htgl;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：合同元素
 * 包:        com.hnkywl.sts.entity.htgl
 * 类描述:    合同元素
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_HTYS")
@Where(clause = "deleted!='1'")
public class Htys extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqHtys", allocationSize = 1, sequenceName = "SEQ_BIZ_HTYS")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqHtys")
    private Long id;

    /**
     * 名称
     */
    private String mc;

    /**
     * 元素ID
     */
    private String ysid;

    /**
     * 对应表字段
     */
    private String dybzd;

    /**
     * 选项类型（1、纯文本 2、数据字典 3、数据集 4、日期 5、固定下拉）
     */
    private Integer yxlx;

    /**
     * 取值
     */
    private String qz;

    /**
     * 默认值
     */
    private String mrz;

    /**
     * 文本长度
     */
    private Integer wbcd;

    /**
     * 备注
     */
    private String bz;

    /**
     * 是否只读，0：不能修改，1：可以修改
     */
      private  String isread;

    @ManyToOne
    @JoinColumn(name="HTDY_ID")
    private Htdy htdy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    public String getYsid() {
        return ysid;
    }

    public void setYsid(String ysid) {
        this.ysid = ysid;
    }

    public String getDybzd() {
        return dybzd;
    }

    public void setDybzd(String dybzd) {
        this.dybzd = dybzd;
    }

    public Integer getYxlx() {
        return yxlx;
    }

    public void setYxlx(Integer yxlx) {
        this.yxlx = yxlx;
    }

    public String getQz() {
        return qz;
    }

    public void setQz(String qz) {
        this.qz = qz;
    }

    public String getMrz() {
        return mrz;
    }

    public void setMrz(String mrz) {
        this.mrz = mrz;
    }

    public Integer getWbcd() {
        return wbcd;
    }

    public void setWbcd(Integer wbcd) {
        this.wbcd = wbcd;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Htdy getHtdy() {
        return htdy;
    }

    public void setHtdy(Htdy htdy) {
        this.htdy = htdy;
    }

    public String getIsread() {
        return isread;
    }

    public void setIsread(String isread) {
        this.isread = isread;
    }

}
